package com.fy56.platform.goodsTracking.jdbc.datasource;

/**
 * Created by Administrator on 2016-05-18.
 */
public class DBContextHolder extends com.dexcoder.dal.spring.datasource.DynamicDataSourceHolder {

    private static final ThreadLocal contextHolder = new ThreadLocal();

    public static void setDBType(String dbType) {
        contextHolder.set(dbType);
    }

    public static String getDBType() {
        return (String) contextHolder.get();
    }

    public static void clearDBType() {
        contextHolder.remove();
    }
}